package com.zhentao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.model.wemedia.pojo.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.model.wemedia.pojo.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.w3c.dom.stylesheets.LinkStyle;

import java.util.List;

/**
 * @ClassName: WmNewsMaterialMapper
 * @Author: 振涛教育_小T
 * @Date: 2024/12/25 15:08
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    //绑定关系

    /**
     * 写了一篇文章  设置了3张封面
     * type  1
     * newsId  1
     * 素材id 1,2,3
     */
    Integer saveRelations(@Param("type") Short type,
                          @Param("newsId") Integer newsId,
                          @Param("materialIds") List<Integer> materialId);
}
